#include "BinExpr.h"
#include "Visitor.h"
BinExpr::BinExpr(const std::string opstr, Expr* lhs, Expr* rhs):
    m_opstr(opstr), m_lhs(lhs), m_rhs(rhs)
{
}

BinExpr::~BinExpr()
{
    if(this->m_lhs!=0){
        delete this->m_lhs;
    }
    if(this->m_rhs!=0){
        delete this->m_rhs;
    }
}
std::string BinExpr::Getopstr()
{
    return m_opstr;
}
Expr* BinExpr::Getlhs()
{
    return m_lhs;
}
Expr* BinExpr::Getrhs()
{
    return m_rhs;
}
